package com.pioneer.app.proview;

/**
 * UserProcessId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class UserProcessId implements java.io.Serializable {

	// Fields

	private Integer userId;

	private String processId;

	// Constructors

	/** default constructor */
	public UserProcessId() {
	}

	/** full constructor */
	public UserProcessId(Integer userId, String processId) {
		this.userId = userId;
		this.processId = processId;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getProcessId() {
		return this.processId;
	}

	public void setProcessId(String processId) {
		this.processId = processId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof UserProcessId))
			return false;
		UserProcessId castOther = (UserProcessId) other;

		return ((this.getUserId() == castOther.getUserId()) || (this.getUserId() != null
				&& castOther.getUserId() != null && this.getUserId().equals(
				castOther.getUserId())))
				&& ((this.getProcessId() == castOther.getProcessId()) || (this
						.getProcessId() != null
						&& castOther.getProcessId() != null && this.getProcessId().equals(
						castOther.getProcessId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUserId() == null ? 0 : this.getUserId().hashCode());
		result = 37 * result
				+ (getProcessId() == null ? 0 : this.getProcessId().hashCode());
		return result;
	}

}